//
//  FirstRecommendCell.m
//  TianXiaShi
//
//  Created by qianfeng01 on 15-7-12.
//  Copyright (c) 2015年 CongCong. All rights reserved.
//

#import "FirstRecommendCell.h"
#import "UIImageView+WebCache.h"
@implementation FirstRecommendCell

- (void)awakeFromNib {
    // Initialization code
}
- (void)showModel:(LCVideoModel *)model
{
    [self.image sd_setImageWithURL:[NSURL URLWithString:model.image] placeholderImage:[UIImage imageNamed:@"tupianbg"]];
    self.title.text = model.title;
    if (model.memberItem) {
        NSString *time = [model.memberItem.createDate substringFromIndex:5];
        time = [time substringToIndex:11];
        self.dateAndTimes.text = [NSString stringWithFormat:@"%@ 播放%.2f万次",time,model.playTime.floatValue/10000];
        self.typeImage.hidden = YES;
    }
    else
    {
        self.dateAndTimes.text = model.abstractDesc;
        self.typeImage.hidden = NO;
    }
    
}

@end
